/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bttk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商户管理Entity
 * @author soyatec
 * @version 2016-11-02
 */
public class TCustomerCrowd extends DataEntity<TCustomerCrowd> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 商户编号 父类
	private String customerId;		// 客户编号
	private String crowdId;		// 商户众筹项目编号
	private Date launchTime;		// 发起众筹时间
	private Date endTime;		// 客户众筹活动结束时间
	private String totalHelpAmount;		// 累计帮筹人数
	private String crowdStatus;		// 众筹状态（0-众筹未完成；1-众筹成功）
	private String additionalMoney;		// 现金补差金额
	private String takenStatus;		// 发起众筹人核销状态（0-未核销；1-已核销）
	
	public TCustomerCrowd() {
		super();
	}

	public TCustomerCrowd(String id){
		super(id);
	}

	public TCustomerCrowd(User user){
		this.user = user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=11, message="客户编号长度必须介于 0 和 11 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=0, max=11, message="商户众筹项目编号长度必须介于 0 和 11 之间")
	public String getCrowdId() {
		return crowdId;
	}

	public void setCrowdId(String crowdId) {
		this.crowdId = crowdId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLaunchTime() {
		return launchTime;
	}

	public void setLaunchTime(Date launchTime) {
		this.launchTime = launchTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=11, message="累计帮筹人数长度必须介于 0 和 11 之间")
	public String getTotalHelpAmount() {
		return totalHelpAmount;
	}

	public void setTotalHelpAmount(String totalHelpAmount) {
		this.totalHelpAmount = totalHelpAmount;
	}
	
	@Length(min=0, max=6, message="众筹状态（0-众筹未完成；1-众筹成功）长度必须介于 0 和 6 之间")
	public String getCrowdStatus() {
		return crowdStatus;
	}

	public void setCrowdStatus(String crowdStatus) {
		this.crowdStatus = crowdStatus;
	}
	
	public String getAdditionalMoney() {
		return additionalMoney;
	}

	public void setAdditionalMoney(String additionalMoney) {
		this.additionalMoney = additionalMoney;
	}
	
	@Length(min=0, max=6, message="发起众筹人核销状态（0-未核销；1-已核销）长度必须介于 0 和 6 之间")
	public String getTakenStatus() {
		return takenStatus;
	}

	public void setTakenStatus(String takenStatus) {
		this.takenStatus = takenStatus;
	}
	
}